summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-17 04:41:02 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-17 04:41:02 -0400
commit08488d4cd733ff37a0a096f4b5bcbece0c181cc9 (patch)
treed7a9e55a030707adab9935885f2fad278d10e83b /src/op.h
parent1c079630cf21c2e257e272897a987c0968571865 (diff)
downloadfork-ledger-08488d4cd733ff37a0a096f4b5bcbece0c181cc9.tar.gz
fork-ledger-08488d4cd733ff37a0a096f4b5bcbece0c181cc9.tar.bz2
fork-ledger-08488d4cd733ff37a0a096f4b5bcbece0c181cc9.zip
Removed more dead code and todo comments, and made it possible to stream
compiled value expressions.
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/op.h b/src/op.h
index 17cb2f38..b155063d 100644
--- a/src/op.h
+++ b/src/op.h
@@ -278,19 +278,16 @@ public:
struct print_context_t
{
- scope_t& scope;
- const bool relaxed;
- const ptr_op_t& op_to_find;
+ const bool relaxed;
+ const ptr_op_t& op_to_find;
ostream_pos_type * start_pos;
ostream_pos_type * end_pos;
- // jww (2008-08-01): Is a scope needed here?
- print_context_t(scope_t& _scope,
- const bool _relaxed = false,
+ print_context_t(const bool _relaxed = false,
const ptr_op_t& _op_to_find = ptr_op_t(),
ostream_pos_type * _start_pos = NULL,
ostream_pos_type * _end_pos = NULL)
- : scope(_scope), relaxed(_relaxed), op_to_find(_op_to_find),
+ : relaxed(_relaxed), op_to_find(_op_to_find),
start_pos(_start_pos), end_pos(_end_pos) {}
};