naccyde / rpms / systemd

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