Skip to content

Commit

Permalink
fix(build): Remove unused ustrings (AcademySoftwareFoundation#1764)
Browse files Browse the repository at this point in the history
A recent change in OIIO master made some of the ustring methods
"trivial", and somehow that makes these variables warn about being
unused, which it did not do before.

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz authored Jan 18, 2024
1 parent 7fd9c3f commit d4b372b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/liboslexec/batched_llvm_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3261,9 +3261,8 @@ LLVMGEN(llvm_gen_construct_triple)

// Do the transformation in-place, if called for
if (using_space) {
ustring from, to; // N.B. initialize to empty strings
if (Space.is_constant()) {
from = Space.get_string();
ustring from = Space.get_string();
if (from == Strings::common
|| from == rop.shadingsys().commonspace_synonym())
return true; // no transformation necessary
Expand Down
1 change: 0 additions & 1 deletion src/liboslexec/llvm_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ static ustring op_xor("xor");

static ustring u_distance("distance");
static ustring u_index("index");
static ustring u__empty; // empty/default ustring



Expand Down

0 comments on commit d4b372b

Please sign in to comment.