Skip to content

Commit

Permalink
[FIX] remove attached_... features
Browse files Browse the repository at this point in the history
  • Loading branch information
pgcrism committed Apr 15, 2013
1 parent 57e500e commit 4c958ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
17 changes: 5 additions & 12 deletions examples/test_decimal/test_decimal_ecli.e
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ create

feature {NONE} -- Initialization

make
make
-- Create and execute test.
do
io.put_string ("*** test_decimal : Test DECIMAL input/output ***%N%N")
Expand All @@ -29,9 +29,9 @@ feature {NONE} -- Initialization
else
session.set_login_strategy (
create {ECLI_SIMPLE_LOGIN}.make (
attached_string (arguments.argument (1)),
attached_string (arguments.argument (2)),
attached_string (arguments.argument (3)))
arguments.argument (1),
arguments.argument (2),
arguments.argument (3))
)
session.connect
if session.is_connected then
Expand Down Expand Up @@ -191,13 +191,6 @@ feature -- Constants

feature -- Implementation

attached_string (s : detachable STRING) : STRING
do
check attached s as l_s then
Result := l_s.twin
end
end

create_test_table
local
dbms : STRING
Expand Down Expand Up @@ -235,7 +228,7 @@ feature -- Implementation
end
end

show_supported_numeric_types
show_supported_numeric_types
local
numerics : DS_LIST[ECLI_SQL_TYPE]
type_catalog : ECLI_TYPE_CATALOG
Expand Down
21 changes: 6 additions & 15 deletions examples/test_gc/test_gc.e
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ feature -- Initialization
else
create session.make_default
session.set_login_strategy (create {ECLI_SIMPLE_LOGIN}.make (
attached_string (args.argument (1)),
attached_string (args.argument (2)),
attached_string (args.argument (3)))
args.argument (1),
args.argument (2),
args.argument (3))
)
session.connect
if session.has_information_message then
Expand Down Expand Up @@ -105,9 +105,9 @@ feature -- Initialization
a_tried := True
create session.make_default
session.set_login_strategy (create {ECLI_SIMPLE_LOGIN}.make (
attached_string (args.argument (1)),
attached_string (args.argument (2)),
attached_string (args.argument (3))
args.argument (1),
args.argument (2),
args.argument (3)
)
)

Expand All @@ -125,15 +125,6 @@ feature -- Initialization
retry
end

attached_string (s : detachable STRING) : STRING
do
check attached s as l_s then
Result := l_s
end
end

do
end

do_case_c
do
Expand Down

0 comments on commit 4c958ba

Please sign in to comment.