[sem] Remove unused field from sem::Function

We do not need to support `blend_src` (which was wrongly named
`index`) on function return values in the WGSL namespace now that
backends are all IR.

Change-Id: Ibbae550b65b5417fac6cf6183598e2b80fb42cd6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/250821
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/wgsl/resolver/validator.cc b/src/tint/lang/wgsl/resolver/validator.cc
index b224c6c..bf9e4cd 100644
--- a/src/tint/lang/wgsl/resolver/validator.cc
+++ b/src/tint/lang/wgsl/resolver/validator.cc
@@ -1532,7 +1532,7 @@
     if (!func->ReturnType()->Is<core::type::Void>()) {
         if (!validate_entry_point_attributes(decl->return_type_attributes, func->ReturnType(),
                                              decl->source, ParamOrRetType::kReturnType,
-                                             func->ReturnLocation(), func->ReturnIndex(),
+                                             func->ReturnLocation(), /* blend_src */ std::nullopt,
                                              /* color */ std::nullopt)) {
             return false;
         }
diff --git a/src/tint/lang/wgsl/sem/function.h b/src/tint/lang/wgsl/sem/function.h
index 3621a31..740bf8c 100644
--- a/src/tint/lang/wgsl/sem/function.h
+++ b/src/tint/lang/wgsl/sem/function.h
@@ -72,10 +72,6 @@
     /// @param return_location the location value
     void SetReturnLocation(uint32_t return_location) { return_location_ = return_location; }
 
-    // Sets the function's return index
-    /// @param return_index the index value
-    void SetReturnIndex(uint32_t return_index) { return_index_ = return_index; }
-
     /// @returns the ast::Function declaration
     const ast::Function* Declaration() const { return declaration_; }
 
@@ -212,9 +208,6 @@
     /// @return the location for the return, if provided
     std::optional<uint32_t> ReturnLocation() const { return return_location_; }
 
-    /// @return the index for the return, if provided
-    std::optional<uint32_t> ReturnIndex() const { return return_index_; }
-
     /// Modifies the severity of a specific diagnostic rule for this function.
     /// @param rule the diagnostic rule
     /// @param severity the new diagnostic severity
@@ -246,7 +239,6 @@
     std::optional<const Source*> directly_used_subgroup_matrix_ = std::nullopt;
 
     std::optional<uint32_t> return_location_;
-    std::optional<uint32_t> return_index_;
 };
 
 }  // namespace tint::sem