From e0fbd83a2d756d04ec1df3108fe5b9c69f0f183f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 26 Apr 2015 12:19:12 +0200 Subject: [PATCH] Remove support for windows --- node_windows.go | 23 ----------------------- snapshot_windows.go | 16 ---------------- 2 files changed, 39 deletions(-) delete mode 100644 node_windows.go delete mode 100644 snapshot_windows.go diff --git a/node_windows.go b/node_windows.go deleted file mode 100644 index 1a84197fb..000000000 --- a/node_windows.go +++ /dev/null @@ -1,23 +0,0 @@ -package restic - -import "os" - -func (node *Node) OpenForReading() (*os.File, error) { - return os.Open(node.path) -} - -func (node *Node) fillExtra(path string, fi os.FileInfo) error { - return nil -} - -func (node *Node) createDevAt(path string) error { - return nil -} - -func (node *Node) createCharDevAt(path string) error { - return nil -} - -func (node *Node) createFifoAt(path string) error { - return nil -} diff --git a/snapshot_windows.go b/snapshot_windows.go deleted file mode 100644 index 8c0068808..000000000 --- a/snapshot_windows.go +++ /dev/null @@ -1,16 +0,0 @@ -package restic - -import "os/user" - -func (sn *Snapshot) fillUserInfo() error { - usr, err := user.Current() - if err != nil { - return err - } - - sn.Username = usr.Username - sn.UserID = usr.Uid - sn.GroupID = usr.Gid - - return nil -}