summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx/src/Reader_.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FoundationEx/src/Reader_.cpp')
-rw-r--r--FoundationEx/src/Reader_.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/FoundationEx/src/Reader_.cpp b/FoundationEx/src/Reader_.cpp
deleted file mode 100644
index 7efdc6a..0000000
--- a/FoundationEx/src/Reader_.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Starshatter: The Open Source Project
- Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors
- Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
- Copyright (c) 1997-2006, Destroyer Studios LLC.
-
- AUTHOR: John DiCamillo
-
-
- OVERVIEW
- ========
- Implementation of the Reader class
-*/
-
-#include <Reader.h>
-
-#include <cstdio>
-
-#include <Utils.h>
-
-
-BlockReader::BlockReader(const char* block) :
- data((char*) block),
- done(0),
- length(0)
-{
-}
-
-
-BlockReader::BlockReader(const char* block, int len) :
- data((char*) block),
- done(0),
- length(len)
-{
-}
-
-
-Text
-BlockReader::more()
-{
- if (done) return Text();
-
- if (length) {
- Text result(data, length);
- done = 1;
- return result;
- }
- else if (data) {
- Text result(data);
- done = 1;
- return result;
- }
-
- done = 1;
- return Text();
-}