aboutsummaryrefslogtreecommitdiff
path: root/usblp.go
diff options
context:
space:
mode:
Diffstat (limited to 'usblp.go')
-rw-r--r--usblp.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/usblp.go b/usblp.go
deleted file mode 100644
index da0dfd0..0000000
--- a/usblp.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "bufio"
- "os"
-)
-
-type LPDevice struct {
- *os.File
-}
-
-func NewLPDevice(path string) (Devicer, error) {
- f, err := os.OpenFile(path, os.O_RDWR, 0666)
- return LPDevice{f}, err
-}
-
-func (d LPDevice) Close() {
- d.File.Close()
-}
-
-func (d LPDevice) Handle() *bufio.ReadWriter {
- r := bufio.NewReader(d.File)
- w := bufio.NewWriter(d.File)
- return bufio.NewReadWriter(r, w)
-}