Skip to content

Commit 15c5af7

Browse files
authored
Merge pull request #1308 from hasanheroglu/1307-replace-protocol-and-port-detection
refactor: remove unused findProtocol and findPort functions
2 parents 8f69a3b + 901a3cb commit 15c5af7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/td-tools/src/td-helpers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@
2323

2424
import ThingDescription from "./thing-description";
2525

26-
// need two tests
26+
/**
27+
* @deprecated This function will be removed in the future. Please use '@thingweb/td-utils' package instead.
28+
*/
2729
export function findProtocol(td: ThingDescription): string {
2830
const base: string = td.base;
2931
const columnLoc: number = base.indexOf(":");
3032
return base.substring(0, columnLoc);
3133
}
3234

35+
/**
36+
* @deprecated This function will be removed in the future. Please use '@thingweb/td-utils' package instead.
37+
*/
3338
export function findPort(td: ThingDescription): number {
3439
const base: string = td.base;
3540
const columnLoc: number = base.indexOf(":", 6);

0 commit comments

Comments
 (0)