summaryrefslogtreecommitdiffstats
path: root/crates/common/tedge_users/src/windows.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/common/tedge_users/src/windows.rs')
-rw-r--r--crates/common/tedge_users/src/windows.rs37
1 files changed, 0 insertions, 37 deletions
diff --git a/crates/common/tedge_users/src/windows.rs b/crates/common/tedge_users/src/windows.rs
deleted file mode 100644
index f529cdd2..00000000
--- a/crates/common/tedge_users/src/windows.rs
+++ /dev/null
@@ -1,37 +0,0 @@
-use std::fmt;
-use std::marker::PhantomData;
-use std::rc::Rc;
-
-#[derive(Clone)]
-pub struct UserManager {
- _force_not_send: PhantomData<Rc<()>>,
-}
-
-impl fmt::Debug for UserManager {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- f.debug_struct("UserManager").finish()
- }
-}
-
-pub struct UserGuard {
- _force_not_send: PhantomData<Rc<()>>,
-}
-
-impl UserManager {
- pub fn new() -> UserManager {
- UserManager {
- _force_not_send: PhantomData,
- }
- }
-
- #[allow(dead_code)]
- pub fn running_as_root() -> bool {
- false
- }
-
- pub fn become_user(&self, _username: &str) -> Result<UserGuard, super::UserSwitchError> {
- Ok(UserGuard {
- _force_not_send: PhantomData,
- })
- }
-}