Skip to content

Commit 991ba6b

Browse files
authored
refactor: remove dead endpoints (#100)
1 parent 1e71cc4 commit 991ba6b

12 files changed

+0
-315
lines changed

src/API/Blocks.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,4 @@ public function transactions(string $id, array $query = []): ?array
7676
{
7777
return $this->get("blocks/{$id}/transactions", $query);
7878
}
79-
80-
/**
81-
* Filter all blocks by the given parameters.
82-
*
83-
* @param array $parameters
84-
*
85-
* @return array
86-
*/
87-
public function search(array $parameters): ?array
88-
{
89-
return $this->post('blocks/search', $parameters);
90-
}
9179
}

src/API/Bridgechains.php

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/API/Businesses.php

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/API/Locks.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@ public function show(string $id): ?array
4444
return $this->get("locks/{$id}");
4545
}
4646

47-
/**
48-
* Filter all locks by the given parameters.
49-
*
50-
* @param array $parameters
51-
*
52-
* @return array
53-
*/
54-
public function search(array $parameters): ?array
55-
{
56-
return $this->post('locks/search', $parameters);
57-
}
58-
5947
/**
6048
* Filter all unlocked locks by the given parameters.
6149
*

src/API/Transactions.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,6 @@ public function showUnconfirmed(string $id): ?array
7878
return $this->get("transactions/unconfirmed/{$id}");
7979
}
8080

81-
/**
82-
* Filter all transactions by the given parameters.
83-
*
84-
* @param array $parameters
85-
*
86-
* @return array
87-
*/
88-
public function search(array $parameters): ?array
89-
{
90-
return $this->post('transactions/search', $parameters);
91-
}
92-
9381
/**
9482
* Get a list of valid transaction types.
9583
*

src/API/Wallets.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,6 @@ public function votes(string $id, array $query = []): ?array
109109
return $this->get("wallets/{$id}/votes", $query);
110110
}
111111

112-
/**
113-
* Filter all wallets by the given parameters.
114-
*
115-
* @param array $parameters
116-
*
117-
* @return array
118-
*/
119-
public function search(array $parameters): ?array
120-
{
121-
return $this->post('wallets/search', $parameters);
122-
}
123-
124112
/**
125113
* Get all wallets sorted by balance in descending order.
126114
*

tests/API/BlocksTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,4 @@ public function transactions_calls_correct_url()
6262
return $connection->blocks()->transactions('dummy');
6363
});
6464
}
65-
66-
/** @test */
67-
public function search_calls_correct_url()
68-
{
69-
$this->assertResponse('POST', 'blocks/search', function ($connection) {
70-
return $connection->blocks()->search(['address' => 'dummy']);
71-
});
72-
}
7365
}

tests/API/BridgechainsTest.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

tests/API/BusinessesTest.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/API/LocksTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ public function show_calls_correct_url()
3939
});
4040
}
4141

42-
/** @test */
43-
public function search_calls_correct_url()
44-
{
45-
$this->assertResponse('POST', 'locks/search', function ($connection) {
46-
return $connection->locks()->search(['address' => 'dummy']);
47-
});
48-
}
49-
5042
/** @test */
5143
public function unlocked_calls_correct_url()
5244
{

tests/API/TransactionsTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ public function show_unconfirmed_calls_correct_url()
6363
});
6464
}
6565

66-
/** @test */
67-
public function search_calls_correct_url()
68-
{
69-
$this->assertResponse('POST', 'transactions/search', function ($connection) {
70-
return $connection->transactions()->search(['amount' => 1]);
71-
});
72-
}
73-
7466
/** @test */
7567
public function types_calls_correct_url()
7668
{

tests/API/WalletsTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ public function votes_calls_correct_url()
8787
});
8888
}
8989

90-
/** @test */
91-
public function search_calls_correct_url()
92-
{
93-
$this->assertResponse('POST', 'wallets/search', function ($connection) {
94-
return $connection->wallets()->search(['address' => 'dummy']);
95-
});
96-
}
97-
9890
/**
9991
* @return string
10092
*/

0 commit comments

Comments
 (0)