From 7f4a11a6499aade26b418b7ae13cd12859f75bdd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Aug 2020 12:17:01 +0000 Subject: overidx: inline create_ghost sub There's no need for this to be a separate sub since there's only a single caller. This saves a few kilobytes at least in short-lived processes. --- t/over.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/over.t b/t/over.t index 41c13872..4c8f8098 100644 --- a/t/over.t +++ b/t/over.t @@ -33,9 +33,9 @@ $over->dbh; is($over->sid('hello-world'), $x, 'idempotent across reopen'); $over->each_by_mid('never', sub { fail('should not be called') }); -$x = $over->create_ghost('never'); +$x = $over->resolve_mid_to_tid('never'); is(int($x), $x, 'integer tid for ghost'); -$y = $over->create_ghost('NEVAR'); +$y = $over->resolve_mid_to_tid('NEVAR'); is($y, $x + 1, 'integer tid for ghost increases'); my $ddd = compress(''); -- cgit v1.2.3-24-ge0c7