Upon deleting a task using the Dissolve Tasks command (available in the Gantt chart), the logic between the predecessors and the successors will be preserved.
Example
Let's take an example with three consecutive tasks linked as in the illustration below:
Upon using the Dissolve Tasks command on Task B, Task B is deleted (as well as the corresponding links), and a new link is automatically created between Task A and Task C.