Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
070c7226
Commit
070c7226
authored
12 years ago
by
Kadah_Coba
Browse files
Options
Downloads
Patches
Plain Diff
storm-1843: remove unused ParcelMediaURLFilter code
parent
5b80b00d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/message.xml
+0
-8
0 additions, 8 deletions
etc/message.xml
indra/llinventory/llparcel.cpp
+0
-67
0 additions, 67 deletions
indra/llinventory/llparcel.cpp
indra/llinventory/llparcel.h
+0
-7
0 additions, 7 deletions
indra/llinventory/llparcel.h
with
0 additions
and
82 deletions
etc/message.xml
+
0
−
8
View file @
070c7226
...
...
@@ -385,14 +385,6 @@
<key>
trusted-sender
</key>
<boolean>
true
</boolean>
</map>
<key>
ParcelMediaURLFilter
</key>
<map>
<key>
flavor
</key>
<string>
llsd
</string>
<key>
trusted-sender
</key>
<boolean>
false
</boolean>
</map>
<key>
ParcelNavigateMedia
</key>
<map>
...
...
This diff is collapsed.
Click to expand it.
indra/llinventory/llparcel.cpp
+
0
−
67
View file @
070c7226
...
...
@@ -193,8 +193,6 @@ void LLParcel::init(const LLUUID &owner_id,
mMediaWidth
=
0
;
mMediaHeight
=
0
;
setMediaCurrentURL
(
LLStringUtil
::
null
);
mMediaURLFilterEnable
=
FALSE
;
mMediaURLFilterList
=
LLSD
::
emptyArray
();
mMediaAllowNavigate
=
TRUE
;
mMediaURLTimeout
=
0.0
f
;
mMediaPreventCameraZoom
=
FALSE
;
...
...
@@ -336,38 +334,6 @@ void LLParcel::setMediaURLResetTimer(F32 time)
mMediaResetTimer
.
setTimerExpirySec
(
time
);
}
void
LLParcel
::
setMediaURLFilterList
(
LLSD
list
)
{
// sanity check LLSD
// must be array of strings
if
(
!
list
.
isArray
())
{
return
;
}
for
(
S32
i
=
0
;
i
<
list
.
size
();
i
++
)
{
if
(
!
list
[
i
].
isString
())
return
;
}
// can't be too big
const
S32
MAX_SIZE
=
50
;
if
(
list
.
size
()
>
MAX_SIZE
)
{
LLSD
new_list
=
LLSD
::
emptyArray
();
for
(
S32
i
=
0
;
i
<
llmin
(
list
.
size
(),
MAX_SIZE
);
i
++
)
{
new_list
.
append
(
list
[
i
]);
}
list
=
new_list
;
}
mMediaURLFilterList
=
list
;
}
// virtual
void
LLParcel
::
setLocalID
(
S32
local_id
)
{
...
...
@@ -622,34 +588,6 @@ BOOL LLParcel::importAccessEntry(std::istream& input_stream, LLAccessEntry* entr
return
input_stream
.
good
();
}
BOOL
LLParcel
::
importMediaURLFilter
(
std
::
istream
&
input_stream
,
std
::
string
&
url
)
{
skip_to_end_of_next_keyword
(
"{"
,
input_stream
);
while
(
input_stream
.
good
())
{
skip_comments_and_emptyspace
(
input_stream
);
std
::
string
line
,
keyword
,
value
;
get_line
(
line
,
input_stream
,
MAX_STRING
);
get_keyword_and_value
(
keyword
,
value
,
line
);
if
(
"}"
==
keyword
)
{
break
;
}
else
if
(
"url"
==
keyword
)
{
url
=
value
;
}
else
{
llwarns
<<
"Unknown keyword in parcel media url filter section: <"
<<
keyword
<<
">"
<<
llendl
;
}
}
return
input_stream
.
good
();
}
// Assumes we are in a block "ParcelData"
void
LLParcel
::
packMessage
(
LLMessageSystem
*
msg
)
{
...
...
@@ -696,8 +634,6 @@ void LLParcel::packMessage(LLSD& msg)
msg
[
"media_allow_navigate"
]
=
getMediaAllowNavigate
();
msg
[
"media_prevent_camera_zoom"
]
=
getMediaPreventCameraZoom
();
msg
[
"media_url_timeout"
]
=
getMediaURLTimeout
();
msg
[
"media_url_filter_enable"
]
=
getMediaURLFilterEnable
();
msg
[
"media_url_filter_list"
]
=
getMediaURLFilterList
();
msg
[
"group_id"
]
=
getGroupID
();
msg
[
"pass_price"
]
=
mPassPrice
;
msg
[
"pass_hours"
]
=
mPassHours
;
...
...
@@ -789,7 +725,6 @@ void LLParcel::unpackMessage(LLMessageSystem* msg)
msg
->
getString
(
"MediaLinkSharing"
,
"MediaCurrentURL"
,
buffer
);
setMediaCurrentURL
(
buffer
);
msg
->
getU8
(
"MediaLinkSharing"
,
"MediaAllowNavigate"
,
mMediaAllowNavigate
);
msg
->
getU8
(
"MediaLinkSharing"
,
"MediaURLFilterEnable"
,
mMediaURLFilterEnable
);
msg
->
getU8
(
"MediaLinkSharing"
,
"MediaPreventCameraZoom"
,
mMediaPreventCameraZoom
);
msg
->
getF32
(
"MediaLinkSharing"
,
"MediaURLTimeout"
,
mMediaURLTimeout
);
}
...
...
@@ -1250,8 +1185,6 @@ void LLParcel::clearParcel()
mMediaWidth
=
0
;
mMediaHeight
=
0
;
setMediaCurrentURL
(
LLStringUtil
::
null
);
setMediaURLFilterList
(
LLSD
::
emptyArray
());
setMediaURLFilterEnable
(
FALSE
);
setMediaAllowNavigate
(
TRUE
);
setMediaPreventCameraZoom
(
FALSE
);
setMediaURLTimeout
(
0.0
f
);
...
...
This diff is collapsed.
Click to expand it.
indra/llinventory/llparcel.h
+
0
−
7
View file @
070c7226
...
...
@@ -247,8 +247,6 @@ class LLParcel
void
setMediaWidth
(
S32
width
);
void
setMediaHeight
(
S32
height
);
void
setMediaCurrentURL
(
const
std
::
string
&
url
);
void
setMediaURLFilterEnable
(
U8
enable
)
{
mMediaURLFilterEnable
=
enable
;
}
void
setMediaURLFilterList
(
LLSD
list
);
void
setMediaAllowNavigate
(
U8
enable
)
{
mMediaAllowNavigate
=
enable
;
}
void
setMediaURLTimeout
(
F32
timeout
)
{
mMediaURLTimeout
=
timeout
;
}
void
setMediaPreventCameraZoom
(
U8
enable
)
{
mMediaPreventCameraZoom
=
enable
;
}
...
...
@@ -310,7 +308,6 @@ class LLParcel
// BOOL importStream(std::istream& input_stream);
BOOL
importAccessEntry
(
std
::
istream
&
input_stream
,
LLAccessEntry
*
entry
);
BOOL
importMediaURLFilter
(
std
::
istream
&
input_stream
,
std
::
string
&
url
);
// BOOL exportStream(std::ostream& output_stream);
void
packMessage
(
LLMessageSystem
*
msg
);
...
...
@@ -354,8 +351,6 @@ class LLParcel
U8
getMediaAutoScale
()
const
{
return
mMediaAutoScale
;
}
U8
getMediaLoop
()
const
{
return
mMediaLoop
;
}
const
std
::
string
&
getMediaCurrentURL
()
const
{
return
mMediaCurrentURL
;
}
U8
getMediaURLFilterEnable
()
const
{
return
mMediaURLFilterEnable
;
}
LLSD
getMediaURLFilterList
()
const
{
return
mMediaURLFilterList
;
}
U8
getMediaAllowNavigate
()
const
{
return
mMediaAllowNavigate
;
}
F32
getMediaURLTimeout
()
const
{
return
mMediaURLTimeout
;
}
U8
getMediaPreventCameraZoom
()
const
{
return
mMediaPreventCameraZoom
;
}
...
...
@@ -651,8 +646,6 @@ class LLParcel
U8
mMediaLoop
;
std
::
string
mMediaCurrentURL
;
LLUUID
mMediaID
;
U8
mMediaURLFilterEnable
;
LLSD
mMediaURLFilterList
;
U8
mMediaAllowNavigate
;
U8
mMediaPreventCameraZoom
;
F32
mMediaURLTimeout
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment