Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
cee27d09
Commit
cee27d09
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused code in formatters.
parent
d3723f87
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libwccl/ops/formatters.cpp
+0
-21
0 additions, 21 deletions
libwccl/ops/formatters.cpp
libwccl/ops/formatters.h
+0
-96
0 additions, 96 deletions
libwccl/ops/formatters.h
with
0 additions
and
117 deletions
libwccl/ops/formatters.cpp
+
0
−
21
View file @
cee27d09
...
...
@@ -5,17 +5,6 @@ namespace Wccl {
// ------ UnaryFunctionFormatter -----
std
::
string
UnaryFunctionFormatter
::
to_raw_string
(
const
FunctionBase
&
f
,
const
std
::
string
&
arg_str
,
const
char
*
open_bracket
,
const
char
*
close_bracket
)
{
std
::
stringstream
ss
;
ss
<<
f
.
raw_name
()
<<
open_bracket
<<
arg_str
<<
close_bracket
;
return
ss
.
str
();
}
std
::
string
UnaryFunctionFormatter
::
to_string
(
const
Corpus2
::
Tagset
&
tagset
,
const
FunctionBase
&
f
,
...
...
@@ -41,14 +30,4 @@ std::string BinaryFunctionFormatter::to_string(
return
ss
.
str
();
}
std
::
string
BinaryFunctionFormatter
::
to_raw_string
(
const
FunctionBase
&
f
,
const
std
::
string
&
arg1_str
,
const
std
::
string
&
arg2_str
)
{
std
::
stringstream
ss
;
ss
<<
f
.
raw_name
()
<<
"("
<<
arg1_str
<<
", "
<<
arg2_str
<<
")"
;
return
ss
.
str
();
}
}
/* end ns Wccl */
This diff is collapsed.
Click to expand it.
libwccl/ops/formatters.h
+
0
−
96
View file @
cee27d09
...
...
@@ -44,40 +44,6 @@ struct UnaryFunctionFormatter
arg_expr
.
to_string
(
tagset
),
open_bracket
,
close_bracket
);
}
/**
* @returns Raw string representation of an unary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_operator_name(arg_str)
* although the open and close brackets can be changed
* (some operators use [])
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
std
::
string
&
arg_str
,
const
char
*
open_bracket
=
"("
,
const
char
*
close_bracket
=
")"
);
/**
* @returns Raw string representation of an unary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_operator_name(raw_argument_expression_string)
* although the open and close brackets can be changed
* (some operators use [])
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
FunctionBase
&
arg_expr
,
const
char
*
open_bracket
=
"("
,
const
char
*
close_bracket
=
")"
)
{
return
to_raw_string
(
f
,
arg_expr
.
to_raw_string
(),
open_bracket
,
close_bracket
);
}
};
/**
...
...
@@ -148,68 +114,6 @@ struct BinaryFunctionFormatter
arg1_expr
.
to_string
(
tagset
),
arg2_expr
.
to_string
(
tagset
));
}
/**
* @returns Raw string representation of a binary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_op_name(arg1_str, arg2_str)
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
std
::
string
&
arg1_str
,
const
std
::
string
&
arg2_str
);
/**
* @returns Raw string representation of a binary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_op_name(arg1_str, raw_arg2_expr_string)
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
std
::
string
&
arg1_str
,
const
FunctionBase
&
arg2_expr
)
{
return
to_raw_string
(
f
,
arg1_str
,
arg2_expr
.
to_raw_string
());
}
/**
* @returns Raw string representation of a binary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_op_name(raw_arg1_expr_string, arg1_str)
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
FunctionBase
&
arg1_expr
,
const
std
::
string
&
arg2_str
)
{
return
to_raw_string
(
f
,
arg1_expr
.
to_raw_string
(),
arg2_str
);
}
/**
* @returns Raw string representation of a binary function.
* Does not require tagset, may contain internal info
* and/or be incomplete. It is in form of
* raw_op_name(raw_arg1_expr_string, raw_arg2_expr_string)
*/
static
std
::
string
to_raw_string
(
const
FunctionBase
&
f
,
const
FunctionBase
&
arg1_expr
,
const
FunctionBase
&
arg2_expr
)
{
return
to_raw_string
(
f
,
arg1_expr
.
to_raw_string
(),
arg2_expr
.
to_raw_string
());
}
};
}
/* end ns Wccl */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment