user-accounts: Remove unused UmAccountType enum

This commit is contained in:
Robert Ancell 2018-11-08 10:48:33 +13:00
parent ed245a9b33
commit 94b218a486
4 changed files with 0 additions and 74 deletions

View file

@ -148,7 +148,6 @@ sources = common_sources + files(
'cc-password-dialog.c',
'cc-user-panel.c',
'run-passwd.c',
'um-account-type.c',
'um-carousel.c',
'um-fingerprint-dialog.c',
'um-history-dialog.c',

View file

@ -1,40 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright 2009-2010 Red Hat, Inc,
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
* Written by: Matthias Clasen <mclasen@redhat.com>
*/
#include "config.h"
#include <glib.h>
#include <glib/gi18n.h>
#include <glib-object.h>
#include "um-account-type.h"
const gchar *
um_account_type_get_name (UmAccountType account_type)
{
switch (account_type) {
case UM_ACCOUNT_TYPE_STANDARD:
return C_("Account type", "Standard");
case UM_ACCOUNT_TYPE_ADMINISTRATOR:
return C_("Account type", "Administrator");
default:
g_assert_not_reached ();
}
}

View file

@ -1,32 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright 2009-2010 Red Hat, Inc,
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
* Written by: Matthias Clasen <mclasen@redhat.com>
*/
#pragma once
G_BEGIN_DECLS
typedef enum {
UM_ACCOUNT_TYPE_STANDARD,
UM_ACCOUNT_TYPE_ADMINISTRATOR
} UmAccountType;
const gchar *um_account_type_get_name (UmAccountType account_type);
G_END_DECLS

View file

@ -207,7 +207,6 @@ panels/user-accounts/org.gnome.controlcenter.user-accounts.policy.in
panels/user-accounts/pw-utils.c
panels/user-accounts/run-passwd.c
panels/user-accounts/um-account-dialog.c
panels/user-accounts/um-account-type.c
panels/user-accounts/um-fingerprint-dialog.c
panels/user-accounts/um-history-dialog.c
panels/user-accounts/um-photo-dialog.c