Skip to content

Commit 9149924

Browse files
committed
remove ADDRESS function
1 parent e070210 commit 9149924

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/functions/functions.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@
2525
}
2626
]
2727
},
28-
{
29-
"id": "ADDRESS",
30-
"name": "ADDRESS",
31-
"description": "Returns the address where the function was called.",
32-
"helpUrl": "http://www.contoso.com/help",
33-
"parameters": [],
34-
"options": {
35-
"requiresAddress": true
36-
}
37-
},
3828
{
3929
"id": "INCREMENT",
4030
"name": "INCREMENT",

src/functions/functions.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ function add(first: number, second: number): number {
88
return first + second;
99
}
1010

11-
/**
12-
* Returns the address where the function was called
13-
* @param invocation
14-
*/
15-
function address(invocation: CustomFunctions.Invocation): string {
16-
return invocation.address || "";
17-
}
18-
1911
/**
2012
* Displays the current time once a second.
2113
* @param invocation Custom function handler
@@ -72,7 +64,6 @@ function logMessage(message: string): string {
7264
* for the function id defined in the metadata file (functions.json).
7365
*/
7466
CustomFunctions.associate("ADD", add);
75-
CustomFunctions.associate("ADDRESS", address);
7667
CustomFunctions.associate("CLOCK", clock);
7768
CustomFunctions.associate("INCREMENT", increment);
7869
CustomFunctions.associate("LOG", logMessage);

0 commit comments

Comments
 (0)