richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
572a44
From d999e2ffa714ceda7859df25e2db296444dcbd1b Mon Sep 17 00:00:00 2001
572a44
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
572a44
Date: Thu, 19 Dec 2013 14:16:46 -0500
572a44
Subject: [PATCH] logind: remove dead variable
572a44
572a44
Noticed-by: Jan Alexander Steffens <jan.steffens@gmail.com>
572a44
---
572a44
 src/login/logind-user.c | 3 ---
572a44
 src/login/logind-user.h | 1 -
572a44
 2 files changed, 4 deletions(-)
572a44
572a44
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
572a44
index e2fce5c..b87311c 100644
572a44
--- a/src/login/logind-user.c
572a44
+++ b/src/login/logind-user.c
572a44
@@ -648,9 +648,6 @@ UserState user_get_state(User *u) {
572a44
 
572a44
         assert(u);
572a44
 
572a44
-        if (u->closing)
572a44
-                return USER_CLOSING;
572a44
-
572a44
         if (u->slice_job || u->service_job)
572a44
                 return USER_OPENING;
572a44
 
572a44
diff --git a/src/login/logind-user.h b/src/login/logind-user.h
572a44
index b9171d3..a36f456 100644
572a44
--- a/src/login/logind-user.h
572a44
+++ b/src/login/logind-user.h
572a44
@@ -61,7 +61,6 @@ struct User {
572a44
 
572a44
         bool in_gc_queue:1;
572a44
         bool started:1;
572a44
-        bool closing:1;
572a44
 
572a44
         LIST_HEAD(Session, sessions);
572a44
         LIST_FIELDS(User, gc_queue);