Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qjs-wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
qjs-wrapper
Commits
93ef2d6c
Commit
93ef2d6c
authored
Sep 16, 2022
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused getters
parent
598b5b79
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
include/pubsub.h
include/pubsub.h
+0
-2
qjs_wrapper.c
qjs_wrapper.c
+0
-6
No files found.
include/pubsub.h
View file @
93ef2d6c
...
@@ -36,11 +36,9 @@ typedef struct {
...
@@ -36,11 +36,9 @@ typedef struct {
int
type
;
int
type
;
UA_Byte
builtInType
;
UA_Byte
builtInType
;
union
{
union
{
UA_DateTime
(
*
getTimestamp
)(
void
);
UA_Double
(
*
getDouble
)(
void
);
UA_Double
(
*
getDouble
)(
void
);
UA_Float
(
*
getFloat
)(
void
);
UA_Float
(
*
getFloat
)(
void
);
UA_String
(
*
getString
)(
void
);
UA_String
(
*
getString
)(
void
);
UA_UInt32
(
*
getUint32
)(
void
);
}
getter
;
}
getter
;
}
VariableData
;
}
VariableData
;
...
...
qjs_wrapper.c
View file @
93ef2d6c
...
@@ -194,12 +194,6 @@ VariableData pubsub_get_value(UA_String identifier) {
...
@@ -194,12 +194,6 @@ VariableData pubsub_get_value(UA_String identifier) {
case
UA_TYPES_FLOAT
:
case
UA_TYPES_FLOAT
:
*
(
UA_Float
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getFloat
();
*
(
UA_Float
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getFloat
();
break
;
break
;
case
UA_TYPES_UINT32
:
*
(
UA_UInt32
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getUint32
();
break
;
case
UA_TYPES_DATETIME
:
*
(
UA_DateTime
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getTimestamp
();
break
;
case
UA_TYPES_STRING
:
case
UA_TYPES_STRING
:
*
(
UA_String
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getString
();
*
(
UA_String
*
)
var_details
.
value
=
droneVariableArray
[
i
].
getter
.
getString
();
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment