teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0149-logind-remove-dead-variable.patch

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