As per my understanding, you are trying to resolve the error "Unresolved symbols" in simulink "state flow" block, but trying to do so, introduces an extra input port to the "state-flow block" which is not desirable.
Cause of error:
Double click on the "chart" block and Navigate to the "Modelling" tab. Inside the "modelling" tab, select "Symbols pane" option which will evantually open the "symbols pane" on the right side of the window as shown below.
when you click on "resolve undefined symbols" icon in the "Symbols pane", the simulink automatically assigns a "TYPE" to it.
In your case, the "type" property of undefined symbol might have been set to "Input Data". This is the reason behind an additional "input" port being created on the state-flow.
solution:
As shown in the below figure, set the "type" property of the unresolved symbol to "local data"
By configuring the "TYPE" of a variable as "local data",that variable becomes "local" within the block and it will be seen only inside the "chart" block. Now you observe that the input port will not be there in your state-flow.
I hope this helps !